package com;

public class HelloSpring {
    //定义hello属性，该属性的值将通过spring框架进行设置
    private String hello=null;

    public String getHello() {
        return hello;
    }

    public void setHello(String hello) {
        this.hello = hello;
    }

    /**
     * 输出方法，从spring配置文件中获取属性并输出
     */
    public void print(){
        System.out.println("Spring say:"+this.getHello()+"!");
    }

}
